package com.example.service;

import com.example.dao.TypeNameDao;
import com.example.entity.TreeTypeName;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TypeNameService {

    @Resource
    private TypeNameDao treeNameDao;

    public List<TreeTypeName> selectTypeName(TreeTypeName treeTypeName) {
        List<TreeTypeName> treelist = treeNameDao.selectTypeName(treeTypeName);
        return treelist;
    }

    //加载所有树苗种类名称
    public List<String> loadTreetypename() {
        List<String> list = treeNameDao.loadTreetypename();
        return list;
    }

    public List<String> loadTreename(Integer userId) {
        List<String> list = treeNameDao.loadTreename(userId);
        return list;
    }
}
